package com.story.api.common.persistence.dao;

import com.story.api.common.persistence.model.PlayRecord;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.story.api.common.persistence.model.VedioDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 播放记录 Mapper 接口
 * </p>
 *
 * @author yangbo
 * @since 2019-09-24
 */
public interface PlayRecordMapper extends BaseMapper<PlayRecord> {


    /**
     * 用户播放记录分页列表
     * @param userId
     * @param resType
     * @return
     */
    List<VedioDetail> userPlayResourcePagelist(@Param("userId") Integer userId,
                                               @Param("resType") Integer resType);
}